package be.roam.drest.service.twitter;

import java.util.Date;

public class TwitterStatus {

	private Date dateCreated;

	private long id;

	private String text;

	private String relativeCreated;

	private TwitterUser user;

	public Date getDateCreated() {
		return dateCreated;
	}

	public void setDateCreated(Date dateCreated) {
		this.dateCreated = dateCreated;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getRelativeCreated() {
		return relativeCreated;
	}

	public void setRelativeCreated(String relativeCreated) {
		this.relativeCreated = relativeCreated;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public TwitterUser getUser() {
		return user;
	}

	public void setUser(TwitterUser user) {
		this.user = user;
	}

	@Override
	public boolean equals(Object obj) {
		if (obj instanceof TwitterStatus) {
			return id == ((TwitterStatus) obj).id;
		}
		return false;
	}

	@Override
	public int hashCode() {
		return (int) id;
	}

}
